@import "@/styles/variables.less";

@theme: #4a90e2;

.calendar-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 40px;
  background-color: @theme;
}

.month-year {
  font-size: @size-lg;
  font-weight: 600;
  color: @primary-color;
  color: #fff;
  padding: 0 @size-base;
}

.calendar-weekdays {
  display: flex;
  justify-content: space-between;
  padding: 6px 40px;
  background-color: @theme;
}

.weekday {
  flex: 1;
  text-align: center;
  font-weight: 500;
  color: #fff;
  font-size: @size-sm;
}

.calendar-grid {
  padding: 8px 40px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  height: 70px;
  background-color: #fff;
  box-sizing: border-box;

  &.selected {
    border: 2px solid @theme;
    .day-number {
      color: @theme;
      font-weight: bold;
    }
  }

  &.today {
    .day-number {
      color: @theme;
      font-weight: bold;
    }
  }

  &:active {
    transform: scale(0.95);
  }
}

.day-number {
  z-index: 1;
  font-size: @size-sm;
  color: #333;
}

.day-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: @size-xs;
  color: rgba(0, 0, 0, 0.6);
}
